package com.treasure.mall.biz.vo.user;

import com.treasure.mall.biz.vo.product.CategoryVo;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 
 * +---------------------------------------------------------
 * * @package: com.treasure.mall.biz.vo.user
 * * @author: guomw (guomwchen@foxmail.com)
 * * @date: 2020/6/12 22:33
 * * @since: V1.0.0
 * +---------------------------------------------------------
 * 注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的
 * Copyright 2019-2022 com.treasure.mall.biz.vo.user Inc. All rights reserved.
 */
@Data
public class MerchantVO {

    private Long merchantId;
    private String avatar;
    private String backgroundImage;
    private String title;
    /**
     * 当前关注人数
     */
    private Long follows;
    /**
     * 是否关注
     */
    private Boolean followed;
    /**
     * 质保金
     */
    private BigDecimal qualityMargin;
    /**
     * 主营类目
     */
    private CategoryVo mainCategory;
    /**
     * 非遗传承人图片
     */
    private String certificateOfIntangibleCultural;


    private String description;

    private boolean enableContact;

    /**
     * 佣金抽成
     */
    private BigDecimal commissionRate;


    public Long getFollows() {
        if (follows == null) {
            return 1001L;
        }
        return 1001 + this.follows;
    }
}
